<?php

class CommentController extends Base_Controller
{

   public function init()
    {
    	parent::init();
    }

   
    public function addAction()
    {
    	$commentService = Application_Model_CommentService::getInstance();
    	$commentService->create($_POST);
    	$this->_redirect($_POST['fromUrl']);    	
    }

	public static function getInstance() {
        if (null === self::$_instance) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }
    
}

